home *** CD-ROM | disk | FTP | other *** search
- |
- | !Run file for Zap
- | (c) D.H.Symes 1991-1995
- |
-
- | Set up directory paths and load sprites
- Set Zap$Dir <Obey$Dir>
- Set Zap$3rdParty <Zap$Dir>.3rdParty
- Set ZapFonts$Path <Zap$Dir>.Fonts.
- Iconsprites <Zap$Dir>.!Sprites
-
- | Find operating system version
- SetEval Zap$OSVsn 350
- RMEnsure UtilityModule 3.50 SetEval Zap$OSVsn 300
- RMEnsure UtilityModule 3.10 SetEval Zap$OSVsn 200
- | To turn off dynamic areas uncomment the following line
- | SetEval Zap$OSVsn 300
-
- | Claim file types and taskwindows
- Set Alias$@RunType_FFF Run <Zap$Dir>.!Run %%*0
- Set Alias$Taskwindow "Basic -quit <Zap$Dir>.Code.Taskwindow "
-
- | Check Zap isn't already running
- Set Zap$Temp "loaded"
- RMEnsure Zap 0.01 SET Zap$Temp "notloaded"
- IF Zap$Temp="loaded" AND Zap$OSVsn=200 THEN ERROR 0 Zap is already loaded
- IF Zap$Temp="loaded" THEN %Basic -quit <Zap$Dir>.Code.Check
-
- | The following lines are maintained by the ZapSetup application. Altering
- | them directly may confuse it!
-
- | ZapSetup config start
- | Default options
- Set Zap$Templates <Zap$Dir>.Templates.Ebourne
- Set Zap$Menus <Zap$Dir>.Menus
- Set Zap$Keys <Zap$Dir>.Keys
- Set Zap$Options <Zap$Dir>.!Config
- Set Zap$External <Zap$Dir>.External
- | ZapSetup config end
-
- | Force template file to Symes if on Risc OS 2
- IF Zap$OSVsn<300 THEN Set Zap$Templates <Zap$Dir>.Templates.Symes
-
- | Load modules and start Zap task (possibly loading a file).
- | Do NOT load extension modules here, see the External file.
- RMEnsure ColourTrans 0.51 RMLoad System:Modules.Colours
- RMEnsure ZapRedraw 0.22 RMLoad <Zap$Dir>.Code.ZapRedraw
- RMEnsure HidePointer 0.11 RMLoad <Zap$Dir>.Code.HidePtr
- RMLoad <Zap$Dir>.Code.Zap
- Zap_Desktop %0